/*
 * @Description: 党建联建及教育培训策划
 */
import request from '@/utils/request2'
import { planProducer } from '@/api/config.js'
const URL = {
  getDetails: planProducer + '/occupationalHealthControlPlan/getOccupationalHealthControlPlanById',
  updateList: planProducer + '/occupationalHealthControlPlan/updateList'
}

const api = {
  /**
  * @description: 获取详情
  * @param {Object} data 接口参数
  * @return {Promise} 接口Promise
  */
  getDetails: params => {
    return request({
      url: URL.getDetails,
      method: 'get',
      params
    })
  },
  /**
  * @description: 提交
  * @param {Object} data 接口参数
  * @return {Promise} 接口Promise
  */
  updateList: data => {
    return request({
      url: URL.updateList,
      method: 'post',
      data
    })
  },
}
export {
  api
}
